﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true"
    CodeBehind="OperatorPermission.aspx.cs" Inherits="PEXAM.Admin.Page_Admin.OperatorPermission" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style3
        {
            width: 131px;
        }
        .style5
        {
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlacebody" runat="server">
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
    </telerik:RadCodeBlock>
    <table style="width: 100%;" cellpadding="0" cellspacing="0">
        <tr>
            <td align="center" class="formTitle">
                User Permission
            </td>
        </tr>
        <tr>
            <td colspan="7">
                &nbsp;
                <asp:Label ID="lbErr" runat="server" ForeColor="Red"></asp:Label>
            </td>
        </tr>
    </table>
    <table>
        <tr>
            <td class="style3">
                <asp:Label ID="Label6" runat="server" Text="Group"></asp:Label>
            </td>
            <td class="style5" colspan="2">
                <table>
                    <tr>
                        <td>
                            <telerik:RadComboBox ID="cboPOG" runat="server" EnableLoadOnDemand="True" Width="216px"
                                AutoPostBack="true" EmptyMessage="Choose a Group" OnSelectedIndexChanged="cboPOG_SelectedIndexChanged">
                            </telerik:RadComboBox>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td class="style3">
                <asp:Label ID="Label10" runat="server" Text="Default (Y/N)"></asp:Label>
            </td>
            <td class="style5">
                <telerik:RadTextBox ID="txtDefault" runat="server" MaxLength="2" Width="50px">
                </telerik:RadTextBox>
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td class="style3">
                <asp:Label ID="Label11" runat="server" Text="Database"></asp:Label>
            </td>
            <td class="style5" colspan="2">
                <table>
                    <tr>
                        <td>
                            <telerik:RadTextBox ID="txtDB" runat="server" ReadOnly="true" Text="EXA">
                            </telerik:RadTextBox>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td class="style3">
                &nbsp;
            </td>
            <td class="style5">
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
    </table>
    <asp:HiddenField ID="hdPermission" runat="server" />
    <div style="margin: auto auto 20px auto; width: 150px">
        <telerik:RadButton ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click"
            Width="100px">
        </telerik:RadButton>
    </div>
    <div>
        <telerik:RadGrid ID="dgvList" runat="server" AutoGenerateColumns="False" GridLines="None"
            OnNeedDataSource="dgvList_NeedDataSource" ShowGroupPanel="True" Skin="Office2007"
            OnUpdateCommand="dgvList_UpdateCommand" OnItemCreated="dgvList_ItemCreated">
            <MasterTableView GroupsDefaultExpanded="False" EditMode="InPlace" DataKeyNames="ID">
                <RowIndicatorColumn>
                    <HeaderStyle Width="20px"></HeaderStyle>
                </RowIndicatorColumn>
                <ExpandCollapseColumn>
                    <HeaderStyle Width="20px"></HeaderStyle>
                </ExpandCollapseColumn>
                <Columns>
                    <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn">
                        <HeaderStyle Width="20px" />
                        <ItemStyle CssClass="MyImageButton" />
                    </telerik:GridEditCommandColumn>
                    <telerik:GridBoundColumn DataField="Module" HeaderText="Module" UniqueName="column1"
                        ReadOnly="True">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Function" HeaderText="Function" UniqueName="column2"
                        ReadOnly="True">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ID" HeaderText="Position" UniqueName="column3"
                        ReadOnly="True">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Action" HeaderText="Action" UniqueName="column4"
                        ReadOnly="True">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Permission" HeaderText="Permission" UniqueName="column"
                        MaxLength="1">
                    </telerik:GridBoundColumn>
                </Columns>
                <EditFormSettings>
                    <EditColumn UniqueName="EditCommandColumn1">
                    </EditColumn>
                </EditFormSettings>
            </MasterTableView>
            <ClientSettings AllowDragToGroup="True">
            </ClientSettings>
        </telerik:RadGrid>
    </div>
</asp:Content>
